<%@ page language="java" contentType="text/html; charset=UTF-8" isErrorPage="true" pageEncoding="UTF-8" isELIgnored="false"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>
<!DOCTYPE html>
<html>
<head>
    <base href="<%=basePath%>">
    <meta charset="UTF-8">
    <title>错误提示页面</title>
    <link href="css/bootstrap.min.css" rel="stylesheet">
</head>
<body>
<div class="container mt-5">
    <c:if test="${mymessage == 'noLogin'}">
        <div class="alert alert-warning">
            <h2>未登录提示</h2>
            <p>您没有权限访问，请<a href="user/toLogin" class="alert-link">登录</a>！</p>
        </div>
    </c:if>
    <c:if test="${mymessage == 'noError'}">
        <div class="alert alert-danger">
            <h2>系统错误</h2>
            <p>服务器内部错误或资源不存在！</p>
        </div>
    </c:if>
</div>
</body>
</html>